<template>
  <div class="container">
    <div class="big-title">
      <span>{{ introducesData.title }}</span>
    </div>
    <div class="introduce-products">
      <div
        class="product"
        v-for="item in introducesData.introduceData"
        :key="item.title"
      >
        <div class="top">
          <div class="img-container">
            <div class="icon">
              <i :class="item.icon"></i>
            </div>
          </div>
        </div>
        <div class="bottom">
          <h4 class="title">{{ item.title }}</h4>
          <p class="introduce">
            {{ item.introduce }}
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeMainFirst",
  props: { introducesData: Object },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.container {
  margin: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  width: 100%;
  color: #fff;
  background-color: rgb(51, 51, 51);
  .big-title {
    margin-bottom: 50px;
    font-size: 48px;
    font-weight: 700;
  }
  .introduce-products {
    display: flex;
    justify-content: center;
    .product {
      max-width: 230px;
      margin: 0 40px;
      .top {
        .img-container {
          margin: 0 auto;
          display: flex;
          justify-content: center;
          align-items: center;
          width: 90px;
          height: 90px;
          background-color: #fff;
          border-radius: 50%;
          .icon {
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            font-size: 40px;
            color: black;
          }
        }
      }
      .bottom {
        margin: 10px 0;
        text-align: center;
        .title {
          margin: 10px 0;
          font-size: 22px;
        }
        .introduce {
          letter-spacing: 1.5px;
          opacity: 0.8;
          line-height: 24px;
        }
      }
    }
  }
}
</style>
